<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <script>
            const p =new Promise((resolve,reject)=>{
                reject("HELLO！");
            });

            p.catch((reason)=>{
                console.log(reason); 
            });
        </script>
    </body>
</html>